# -*- coding: utf-8 -*-
"""
设置功能使用的表单
"""
from django.forms import ModelForm
from .models import SysParam, OrgUnit, DptMt


class OrgUnitForm(ModelForm):
    """
    单位信息表单项
    """
    class Meta:
        model = OrgUnit  # 指定要对照的ORM类
        fields = '__all__'
        exclude = ('create_time', 'create_id', 'last_update',
                   'last_update_id', 'update_count')


class SysParamForm(ModelForm):
    """
    基础参数
    """
    class Meta:
        model = SysParam
        fields = '__all__'


class DptMtForm(ModelForm):
    """
    部门信息
    """
    class Meta:
        model = DptMt
        fields = '__all__'